package com.ctshk.rpc.localfun.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @Description
 * @Author wansi <gaylen15527491065@yeah.net>
 * @Date 2021/3/25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ScenicProductOfflineChannelDTO对象", description="门票自营渠道")
public class LocalFunProductOfflineChannelDTO implements Serializable {

    @ApiModelProperty(value = "自營渠道表ID")
    private Long ruleId;

    @ApiModelProperty(value = "渠道權限ID")
    private Long offlineSelfId;

    @ApiModelProperty(value = "自营渠道类型，1 自营禁售，2 所有部门 3 指定部门/人员 ")
    private Integer visableType;

    @ApiModelProperty(value = "加幅类型")
    private Integer adjustType;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "百分比")
    private Double percent;

    @ApiModelProperty(value = "是否设置限购")
    private Integer isLimit;

    @ApiModelProperty(value = "限购数量")
    private Integer limitNum;

    @ApiModelProperty(value = "门票线下自营自定义权限集合")
    private List<LocalFunProductChannelOfflineSelfCustomDTO> scenicProductChannelOfflineSelfCustomDTOList;
}
